package tanshiru2.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

//自动生成get、set
@Data
//创建无参构造 lombok
@NoArgsConstructor
//创建有参构造 lombok
@AllArgsConstructor
//生成Builder类，支持链式操作 lombok
@Builder
//声明该实体类的对应的表名称 mybatis
@TableName("medicine")
public class Medicine {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private String medicineName;

    private String keyword;

    private String medicineEffect;

    private String medicineBrand;

    private String interaction;

    private String taboo;

    private String usAge;

    private Integer medicineType;

    private String imgPath;

    private Double medicinePrice;

    private Date createTime;

    private Date updateTime;
}
